package org.going.web;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import org.going.annotation.AnnotationHelper;

@WebListener
public class ConfigInitializer implements ServletContextListener
{

	@Override
	public void contextDestroyed(ServletContextEvent arg0)
	{}

	@Override
	public void contextInitialized(ServletContextEvent event)
	{
		try
		{
			AnnotationHelper.initialize(event.getServletContext());
		}
		catch (Exception e)
		{
			System.out.println(e.getMessage());
			throw new RuntimeException(e);
		}
	}

}
